package com.big.es;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.big.es.config","com.big.es.controller","com.big.es.service"})
//@EnableFeignClients(basePackages = "com.big")
public class EsServer {

    public static void main(String[] args) {
        SpringApplication.run(EsServer.class, args);
        System.out.println("****************搜索引擎已初始化***************");
    }
}
